package com.coffee.sku.api.sku.service;


import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.sku.api.sku.query.SkuCategoryAttributeQuery;
import com.coffee.sku.api.sku.req.AddSkuCategoryAttributeReq;
import com.coffee.sku.api.sku.result.SkuCategoryAttributeDetailResult;
import com.coffee.sku.api.sku.result.SkuCategoryAttributeResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SkuCategoryAttributeService {

	Page<SkuCategoryAttributeDetailResult> getPager(SkuCategoryAttributeQuery param, PagerInfo pr);
	
	Integer count(SkuCategoryAttributeQuery param);

	SkuCategoryAttributeDetailResult getDetailByCategoryId(Integer categoryId);
	
	List<SkuCategoryAttributeResult> getList(SkuCategoryAttributeQuery param, PagerInfo pr);
	
	List<SkuCategoryAttributeResult> getList(SkuCategoryAttributeQuery param);
	
	List<SkuCategoryAttributeResult> getList();

	void deleteByCategory(Integer id);

	void add(AddSkuCategoryAttributeReq result)throws BusinessException;

	void update(AddSkuCategoryAttributeReq result)throws BusinessException;

	Map<Integer,SkuCategoryAttributeResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SkuCategoryAttributeResult> getItemMap();
	
}